<?php
class XARPartitionRecord extends XARRecord{
	public function __construct() {
		$this->dao = XARPartitionDAO::dao(get_class($this));
	}
	
	/**
	 * @return XARPartitionQuery
	 */	
	public function getQuery() {
		return new XARPartitionQuery(get_class($this));
	}
	
	public function partitionId(){
		return $this->dao()->partitionId();
	}
		
	public function partition(XAnnotation $annotations, $value){
		return $this->dao()->strategy()->partition($annotations, $value);
	}
	
	public function allPartitions(XAnnotation $annotations){
		return $this->dao()->strategy()->allPartitions($annotations);		
	}
}
?>